import { Controller, Post, Body } from '@nestjs/common';
import { OrderDto } from './order.dto';
import { ManagerOrderService } from './order.service'


@Controller('buyer/order')
export class ManagerOrderController {
    constructor(private readonly orderService: ManagerOrderService) { }

    @Post('list')
    getList(@Body() orderGet: OrderDto) {
        return this.orderService.getList(orderGet);
    }

    @Post('detail')
    orderDetail(@Body() orderId) {
        return this.orderService.orderDetail(orderId);
    }

    @Post('buy')
    orderBuy(@Body() orderId) {
        return this.orderService.orderBuy(orderId);
    }

    @Post('my/list')
    orderMyList(@Body() orderId) {
        return this.orderService.orderMyList(orderId);
    }
}